Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

add more check for config file & add test #108

Merged
merged 2 commits into from
Jul 21, 2021

Conversation

Nicole00
Copy link
Contributor

the pre-check makes the config error more understandable

@@ -237,4 +241,57 @@ class ConfigsSuite {
}
}
}

@Test
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

split multi test cases;
add @test(expected = IllegalArgumentException.class)

// wrong graph address
val wrongGraphAddress = List("127.0.0.1:9669,127.0.0.1:9670")
try {
DataBaseConfigEntry(wrongGraphAddress, space, metaAddress)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could use ExpectedException rule in the test method

@Nicole00 Nicole00 merged commit c4c70d6 into vesoft-inc:master Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants